Trunc()

Type Conversion Function

Syntax samples

TRUNC(<expression>)

Integer1=TRUNC(3.9)

Description

Returns a real expression truncated to an integer. Any digits to the right of the decimal place will be removed. When necessary, ProModel automatically converts real values to integers by truncating them. For more information about ProModel automatically converting between reals and integers, see Converting Between Numeric Types.

Valid In

Any expression. This function returns an integer.

Components

<expression>

The expression to be truncated.

See Also

ROUND().